package com.deepocean.service;

import com.deepocean.entity.*;

import java.util.List;

public interface IJigService {

    /**
     * 添加数据
     * @param jigEntity
     * @return
     */
    boolean add(JigEntity jigEntity);

    /**
     * 当前时间开始，进一小时数据总和
     * @param deviceId
     * @return
     */
    JigInAndOut1Hour getInAndOutInHour(String deviceId);

    /**
     * 分页查询
     * @param jigCondition
     * @return
     */
    List<JigEntity> getJigCondition(JigCondition jigCondition);
}
